package cn.com.infohold.smartcity.api.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Mr.Fan on 2017/4/30.
 */

public class MessageList implements Serializable {

    @Expose()
    @SerializedName("message")
    String message;

    @Expose()
    @SerializedName("read")
    int countRead;

    @Expose()
    @SerializedName("unread")
    int countUnread;


    @Expose()
    @SerializedName("data")
    List<Message> list;


    public boolean isSuccess() {
        return "success".equals(message);
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCountRead() {
        return countRead;
    }

    public void setCountRead(int countRead) {
        this.countRead = countRead;
    }

    public int getCountUnread() {
        return countUnread;
    }

    public void setCountUnread(int countUnread) {
        this.countUnread = countUnread;
    }

    public List<Message> getList() {
        return list;
    }

    public void setList(List<Message> list) {
        this.list = list;
    }
}
